package com.zyy.builder.demo02;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/07/22 08:53
 */
public class Test {
    public static void main(String[] args) {
        //一般情况
        /*Worker worker = new Worker();
        Product product = worker.getProduct();
        System.out.println(product);*/
        
        //链式编程
        Worker worker = new Worker();
        Product product = worker.buildA("休息").buildB("休息").getProduct();
        System.out.println(product);
    }
}
